package tag29_20_08.dienstDozent;

import java.io.*;

public class AufgabeDienste {

	public static void main(String[] args) throws Exception {
		
		ArbeitsspeicherManager asm = 
				new ArbeitsspeicherManager (2000, new Defragmentierung (3000, "C:\\"));
		
		ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("asm.bin"));
		oos.writeObject(asm);
		oos.close();

		System.out.println("Serialisiert: " + asm);

		ObjectInputStream ois = new ObjectInputStream(new FileInputStream("asm.bin"));
		Object obj2 = ois.readObject();
		ois.close();

		System.out.println("Deserialisieret: " + obj2);

	}

}
